
package guoan.domain;

import guoan.core.jodaJson.DateTimeYYYYMMDDHHMMSSSerializer;

import java.io.Serializable;

import javax.persistence.*;

import org.hibernate.annotations.Type;
import org.joda.time.DateTime;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;

/**
 * 教练
 * 
 */
@Entity
public class Train implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID 自增编号
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 入职时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonSerialize(using = DateTimeYYYYMMDDHHMMSSSerializer.class)
    @Type(type = "org.jadira.usertype.dateandtime.joda.PersistentDateTime")
    private DateTime entryTime;
    /**
     * 学校ID
     */
    @Column(name = "school_id")
    private int schoolId;
    /**
     * 分校名称
     */
    @Column(name = "school_name")
    private String schoolName;
    /**
     * 教练姓名
     */
    @Column(name = "train_name")
    private String trainName;
    /**
     * 教练编号
     */
    @Column(name = "train_no")
    private String trainNo;
    /**
     * 教练电话
     */
    @Column(name = "train_tel")
    private String trainTel;

    /**
     * 绑定码
     */
    @Column(name = "password")
    private String password;

    /**
     * 教练身份证
     */
    @Column(name = "id_card")
    private String idCard;
    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonSerialize(using = DateTimeYYYYMMDDHHMMSSSerializer.class)
    @Type(type = "org.jadira.usertype.dateandtime.joda.PersistentDateTime")
    @Column(name = "update_time")
    private DateTime updateTime;
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonSerialize(using = DateTimeYYYYMMDDHHMMSSSerializer.class)
    @Type(type = "org.jadira.usertype.dateandtime.joda.PersistentDateTime")
    @Column(name = "create_time")
    private DateTime createTime;

    /**
     * 教练身份证
     */
    private String openid;

    /**
     * 练车地址
     */
    @Column(name = "car_addr")
    private String carAddr;

    private String jg;
    
    private String hf;
    
    
    public Train(){
    }

    public Long getId(){
        return this.id;
    }

    public void setId(Long id){
        this.id = id;
    }

    public DateTime getEntryTime(){
        return this.entryTime;
    }

    public void setEntryTime(DateTime entryTime){
        this.entryTime = entryTime;
    }

    public int getSchoolId(){
        return this.schoolId;
    }

    public void setSchoolId(int schoolId){
        this.schoolId = schoolId;
    }

    public String getSchoolName(){
        return this.schoolName;
    }

    public void setSchoolName(String schoolName){
        this.schoolName = schoolName;
    }

    public String getTrainName(){
        return this.trainName;
    }

    public void setTrainName(String trainName){
        this.trainName = trainName;
    }

    public String getTrainNo(){
        return this.trainNo;
    }

    public void setTrainNo(String trainNo){
        this.trainNo = trainNo;
    }

    public String getTrainTel(){
        return this.trainTel;
    }

    public void setTrainTel(String trainTel){
        this.trainTel = trainTel;
    }

    public String getPassword(){
        return password;
    }

    public void setPassword(String password){
        this.password = password;
    }

    public String getIdCard(){
        return idCard;
    }

    public void setIdCard(String idCard){
        this.idCard = idCard;
    }

    public DateTime getUpdateTime(){
        return updateTime;
    }

    public void setUpdateTime(DateTime updateTime){
        this.updateTime = updateTime;
    }

    public DateTime getCreateTime(){
        return createTime;
    }

    public void setCreateTime(DateTime createTime){
        this.createTime = createTime;
    }

    public String getOpenid(){
        return openid;
    }

    public void setOpenid(String openid){
        this.openid = openid;
    }

    public String getCarAddr(){
        return carAddr;
    }

    public void setCarAddr(String carAddr){
        this.carAddr = carAddr;
    }

	public String getJg() {
		return jg;
	}

	public void setJg(String jg) {
		this.jg = jg;
	}

	public String getHf() {
		return hf;
	}

	public void setHf(String hf) {
		this.hf = hf;
	}


    
}